//
//  LEGoodStaffCell.m
//  LoveExpressBusiness
//
//  Created by 刘甲奇 on 2017/5/10.
//  Copyright © 2017年 DFH. All rights reserved.
//
/*
  这个是好员工的 cell
  也是店铺简介的 cell
 */
#import "LEGoodStaffCell.h"
#import "UIImageView+WebCache.h"

@interface LEGoodStaffCell()

@property (weak, nonatomic) IBOutlet UIImageView *avatorIV;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *phoneLabel;
@property (weak, nonatomic) IBOutlet UILabel *staffTypeLabel;

@end

@implementation LEGoodStaffCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}


/**
 设置员工数据

 @param model <#model description#>
 */
- (void)setModel:(LEStaffModel *)model
{
    _model = model;
    [self.avatorIV sd_setImageWithURL:[NSURL URLWithString:model.service_portrait_url]];
    self.nameLabel.text = model.service_truename;
    self.phoneLabel.text = model.service_telphone;
    if ([model.isOrderMost isEqualToString:@"1"])
    {
        self.staffTypeLabel.text = @"送单最多";
    }else if ([model.isOrderMost isEqualToString:@"0"])
    {
        self.staffTypeLabel.text = @"业绩最高";
    }
    
}
/**
 商贷

 @param storeModel <#storeModel description#>
 */
- (void)setStoreModel:(LEStoreModel *)storeModel
{
    _storeModel = storeModel;
    [self.avatorIV sd_setImageWithURL:[NSURL URLWithString:storeModel.image_url]];
    self.nameLabel.text = storeModel.store_name;
    self.phoneLabel.text = storeModel.seller_name;
    self.staffTypeLabel.text = storeModel.store_description;
}

@end
